package com.template.injector;

import com.baomidou.mybatisplus.core.injector.AbstractMethod;
import com.baomidou.mybatisplus.core.injector.DefaultSqlInjector;
import com.template.feature.GetFeature;
import com.template.feature.GetFeatures;
import com.template.feature.PutFeature;
import com.template.feature.PutFeatures;

import java.util.List;

/**
 * @description:
 * @author: yanchao
 * @time: 2021-12-29 19:56
 */
public class SqlInjector extends DefaultSqlInjector {

    @Override
    public List<AbstractMethod> getMethodList(Class<?> mapperClass) {
        List<AbstractMethod> methodList = super.getMethodList(mapperClass);
        methodList.add(new PutFeature());
        methodList.add(new PutFeatures());
        methodList.add(new GetFeature());
        methodList.add(new GetFeatures());
        return methodList;
    }
}
